<!--{template header,admin}-->
<style type="text/css">
 .icon{display:block;margin:0px;height:20px;width:20px;background:url(js/xheditor/xheditor_skin/default/img/icons.gif) no-repeat }
.BtnCut {background-position:-20px 0 }
.BtnCopy {background-position:-20px 0}
.BtnPaste {background-position:-40px 0}
.BtnPastetext {background-position:-60px 0}
.BtnBlocktag {background-position:-80px 0}
.BtnFontface {background-position:-100px 0}
.BtnFontSize {background-position:-120px 0}
.BtnBold {background-position:-140px 0}
.BtnItalic {background-position:-160px 0}
.BtnUnderline {background-position:-180px 0}
.BtnStrikethrough {background-position:-200px 0}
.BtnFontColor {background-position:-220px 0}
.BtnBackColor {background-position:-240px 0}
.BtnSelectAll {background-position:-260px 0}
.BtnRemoveformat {background-position:-280px 0}

.BtnAlign {background-position:-300px 0}
.BtnList {background-position:-320px 0}
.BtnOutdent {background-position:-340px 0}
.BtnIndent {background-position:-360px 0}

.BtnLink {background-position:-380px 0}
.BtnUnlink {background-position:-400px 0}
.BtnImg {background-position:-420px 0}
.BtnFlash {background-position:-440px 0}
.BtnMedia {background-position:-460px 0}
.BtnEmot {background-position:-480px 0}
.BtnTable {background-position:-500px 0}

.BtnSource {background-position:-520px 0}
.BtnPreview {background-position:-540px 0}
.BtnPrint {background-position:-560px 0}
.BtnFullscreen {background-position:-580px 0}

.Separator{background-position:-620px 0}

</style>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jqueryui.js"></script>
<script type="text/javascript" src="js/admin.js" ></script>
<script type="text/javascript">
    function upeditor(){
        window.location="index.php?admin_editor/upeditor{$setting['seo_suffix']}";
    }

    $(document).ready(function() {
        $("#list").sortable({
            update : function () {
                var order="";
                var numValue=$("input[name='id[]']");
                for(var i=0;i<numValue.length;i++){
                    order+=$(numValue[i]).val()+",";
                }
                $.post("index.php?admin_editor/order{$setting['seo_suffix']}",{order:order});
            }
        });
    });
</script>
<div style="width:100%; height:15px;color:#000;margin:0px 0px 10px;">
  <div style="float:left;"><a href="index.php?admin_main/stat{$setting['seo_suffix']}" target="main"><b>控制面板首页</b></a>&nbsp;&raquo;&nbsp;编辑器设置&nbsp;&raquo;&nbsp;编辑器功能</div>
</div>
<!--{if isset($message)}-->
<!--{eval $type=isset($type)?$type:'correctmsg'; }-->
<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
	<tr>
		<td class="{$type}">{$message}</td>
	</tr>
</table>
<!--{/if}-->
<table width="100%" cellspacing="1" cellpadding="4" align="center" class="tableborder">
	<tr class="header">
	<td>

		<input type="button" value="全局设置" onclick="document.location.href='index.php?admin_editor/setting{$setting['seo_suffix']}'" sytle="cursor:pointer">&nbsp;&nbsp;&nbsp;
		编辑器功能
	</td>
	</tr>
</table>
	<table cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;">
		<tr class="header" align="center">
			<td width="20%">标签</td>
			<td  width="25%">图标</td>
			<td  width="30%">简介</td>
			<td  width="25%">状态[操作]</td>
		</tr>
	</table>
	<ul id="list" style="cursor: hand; cursor: pointer;" >
		<!--{loop $toolbarlist $toolbar}-->
		<li style="list-style:none;">
			<table  id="table1" cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;"> 
				<tr align="center" class="smalltxt">
					<td width="20%" class="altbg1">{$toolbar['tag']}    <input type="hidden" name="id[]" value="{$toolbar['id']}" /></td>
					<td width="25%" class="altbg2" align="center">                                            
						<!--{if '|'==$toolbar['tag'] }-->
						<div class="icon Separator"/> 
						<!--{else}-->
						<div class="icon Btn{$toolbar['tag']}"/> 
						<!--{/if}-->
                    </td>
					<td width="30%" class="altbg1" align="center">{$toolbar['description']}</td>
					<td width="25%" class="altbg2" align="center">
						 <!--{if $toolbar['available'] }-->已启用
							<a style="color: green" href="index.php?admin_editor/status/{$toolbar['id']}/0{$setting['seo_suffix']}">[禁用]</a>
						 <!--{else}-->已禁用
							<a style="color: red" href="index.php?admin_editor/status/{$toolbar['id']}/1{$setting['seo_suffix']}">[启用]</a>
						 <!--{/if}-->
					</td>
				</tr>
			</table>
		</li>
		<!--{/loop}-->
	</ul>
<br>
<center><input type="button" class="button" name="updatebtn" onclick="upeditor();" value="更新编辑器" ></center><br>
<!--{template footer,admin}-->